<template>
	<view style="width:100%">
		<!-- 		<Navigate :title="title" /> -->
		<OnlineIcon :work_time="config.work_time" :onlinekefu="config.onlinekefu" />
		<NumberList :xinwen='xinwen' />
		<ZTabbar :current="1" />
	</view>
</template>

<script>
import Navigate from '@/components/Navigate/index.vue';
import ZTabbar from '@/components/ZTabbar/index.vue';
import OnlineIcon from './components/OnlineIcon/index.vue';
import NumberList from './components/NumberList/index.vue';
import fetch from '@/common/fetch.js';
export default {
	components: {
		Navigate,
		OnlineIcon,
		NumberList,
		ZTabbar
	},
	
	data() {
		return {
			title: '客服中心',
			xinwen:[],
			config: {
				onlinekefu: '0',
				qq: '0',
				tel: '',
				work_time: '9:00-22:00',
				wx: '0'
			}
		};
	},
	onLoad() {
		fetch.request('/index/mobile/kefu', '', 'GET').then(res => {
			if (res.code === 0) {
				console.log(res);
				this.config = res.data.config;
				this.xinwen = res.data.xinwen;
			}
		});
	},
	methods: {}
};
</script>

<style lang="less"></style>
